package Homework;

public class Compare<T extends Number> {
    private T a;
    private T b;

    public Compare(T a, T b) {
        this.a = a;
        this.b = b;
    }

    public <L extends Number> L compare(L a, L b ) {
        L l = ((this.a.doubleValue() )<= (this.b.doubleValue()) ? a : b);
        return l;
    }

    public void Main2(T a, T b ) {
        this.a = a;
        this.b = b;
    }
}
